package com.css.dzj.dzjzhfx.common.util;

import org.springframework.web.client.RestTemplate;

public class StaticAPI {
    private static RestTemplate restTemplate;

    static {
        if(restTemplate==null){
            restTemplate=PlatformSpringUtils.getBean(RestTemplate.class);
        }
    }

    public  static  RestTemplate getRestTemplate(){
        return restTemplate;
    }
}
